Collection synchronization using equality matched network names

ABSTRACT

One embodiment provides a system that facilitates synchronization collections of data between a local and a remote node by using exact match names. During operation, a local node receives an advertisement corresponding to a remote manifest at a remote node. A manifest represents a collection of content objects at a node. In some embodiments, a manifest corresponds to a root hash value that identifies the content objects of the collection. The local node determines that the local manifest and the remote manifest both indicate the same collection of content objects. The local node then determines if the content of the collections are different by comparing the root hash value of the local manifest with the root hash value of the remote manifest. Responsive to determining that the root hash values of the manifests are different, the local node retrieves the remote manifest by sending a request for the remote manifest. The local node determines which content objects identified in the remote manifest are different from the content objects identified in the local manifest. The local node transmits a set of interests for the content objects that are different and receives the requested set of content objects, thereby facilitating synchronization of content objects associated with the manifests at both the local and remote node.

BACKGROUND

1. Field

This disclosure is generally related to data synchronization. More specifically, this disclosure is related to executing synchronization of collections between peers on a network using exact match names.

2. Related Art

In many computing applications, it is often important for peers on a network to synchronize their respective collections of data. The proliferation of digital content creates a vast number of collections which require reconciliation. Content-centric network (CCN) architectures have been designed to facilitate accessing and processing such digital content. A CCN includes entities, or nodes, such as network clients, forwarders (e.g., routers), and content producers, which communicate with each other by sending “interest” packets for various content items and receiving “content object” packets in return. CCN interests and content objects are identified based on a unique name, which is typically a hierarchically structured variable length identifier (HSVLI) which comprises contiguous name components ordered from a most general level to a most specific level.

A current CCN synchronization protocol uses a longest-prefix match method, where an interest in “/parc/events/” will match both “/parc/events/calendar.txt” and “/parc/events/conference.txt.” This current synchronization protocol is based on responses that extend the name of an interest. This synchronization protocol is described in the following applications:

-   -   U.S. patent application Ser. No. 13/720,736 (Attorney Docket No.         PARC-20111397-US-NP), entitled “DYNAMIC ROUTING PROTOCOLS USING         DATABASE SYNCHRONIZATION,” by inventors Van L. Jacobson and         Marc E. Mosko, filed 19 Dec. 2012 (hereinafter “U.S. patent         application Ser. No. 13/720,736”); and     -   U.S. patent application Ser. No. 13/681,306 (Attorney Docket No.         PARC-20111317-US-NP), entitled “DATA TRANSPORT BY NAMED CONTENT         SYNCHRONIZATION,” by inventors Van L. Jacobson and Marc E.         Mosko, filed 19 Nov. 2012 (hereinafter “U.S. patent application         Ser. No. 13/681,306”);         the disclosures of which are herein incorporated by reference in         their entirety.

As CCN architectures evolve, there is a need for a synchronization protocol that allows the use of exact name match, rather than the current longest-prefix match. In such a new architecture, the current CCN synchronization protocol will not work.

SUMMARY

One embodiment provides a system that facilitates the synchronization of collections of data between a local and a remote node by using exact match names. During operation, a local node receives an advertisement corresponding to a remote manifest at a remote node. A manifest represents a collection of content objects at a node. In some embodiments, a manifest corresponds to a root hash value that identifies the content objects of the collection. The local node determines that the local manifest and the remote manifest both indicate the same collection of content objects. The local node then determines if the content of the collections are different by comparing the root hash value of the local manifest with the root hash value of the remote manifest. Responsive to determining that the root hash values of the manifests are different, the local node retrieves the remote manifest by sending a request for the remote manifest. The local node determines which content objects identified in the remote manifest are different from the content objects identified in the local manifest. The local node transmits a set of interests for the content objects that are different and receives the requested set of content objects, thereby facilitating the synchronization of content objects associated with the manifests at both the local and the remote node.

In another embodiment, the local node sends a request for a remote manifest by sending a set of interests based on a chunking protocol, where each interest corresponds to a numbered chunk of the manifest.

In another embodiment, the local node transmits a set of interests for the content objects that are different, based on one or more of the following: a hash value of the content object; and a name of the content object as indicated in the manifest.

In some embodiments, the name for the content object is a hierarchically structured variable length identifier (HSVLI) which comprises contiguous name components ordered from a most general level to a most specific level, and where the name further indicates one or more of: a time that the content object was modified; and a sequence number based on a time that the content object was modified.

In some embodiments, the local node determines whether the content object in the remote manifest is more recent than the content object in the local manifest, based on one or more of: a time that the content object was modified, where a later time indicates a more recent version of the content object; a sequence number based on a time that the content object was modified, where a greater sequence number indicates a more recent version of the content object; and an ordering of the names of the content objects, where an implicit sort order indicates a more recent version of the content object.

In some embodiments, responsive to determining that the modified time of the content object in the remote manifest is more recent than the modified time of the corresponding content object in the local manifest, the system updates the value of the content object in the local manifest with the value of the content object in the remote manifest.

In some embodiments, responsive to determining that the modified time of the content object in the remote manifest is less recent than the modified time of the corresponding content object in the local manifest, the system inserts the corresponding value and modified time of the content object in the remote manifest into a history field of the content object in the local manifest.

In some embodiments, a packet sent or received by the local node indicates one or more of: a routable prefix that identifies the manifest; an identifier to determine that the packet corresponds to a transfer of data; a root hash value of the manifest; a number corresponding to a numbered chunk based on a chunking protocol; a hash of the content object; and a name of the content object in the manifest.

In some embodiments, a local node transmits an advertisement corresponding to a manifest, where the manifest represents a collection of content objects at a node. The local node transmits the manifest to a remote node in response to receiving a request for a manifest. The local node transmits a requested content object associated with the manifest to a remote node.

In some embodiments, an interest corresponding to the transmitted advertisement indicates one or more of: a routable prefix that identifies the manifest; an identifier to determine that the interest corresponds to an advertisement of the manifest; and a root hash value of the manifest.

BRIEF DESCRIPTION OF THE FIGURES

FIG. 1 illustrates an exemplary computer system that facilitates the synchronization of manifests between nodes in a content centric network, in accordance with an embodiment of the present invention.

FIG. 2 illustrates exemplary communication between a local node and a remote node, in accordance with an embodiment of the present invention.

FIG. 3 presents a flow chart illustrating a method for synchronizing content associated with a remote manifest and a local manifest, in accordance with an embodiment of the present invention.

FIG. 4 presents a flow chart illustrating a method for synchronizing content associated with a remote manifest and a local manifest based on a modified time, in accordance with an embodiment of the present invention.

FIG. 5 presents a flow chart illustrating a method for transmitting an advertisement corresponding to a manifest, in accordance with an embodiment of the present invention.

FIG. 6A presents a table depicting the format of a manifest and the content objects represented in the collection, in accordance with an embodiment of the present invention.

FIG. 6B presents tables depicting the format of two manifests during synchronization, where the local manifest is missing a content object from the remote manifest, in accordance with an embodiment of the present invention.

FIG. 6C presents tables depicting the format of two manifests during synchronization, where the digest of a same named content object in the local manifest is different from the digest in the remote manifest, and where the remote node advertises its manifest, in accordance with an embodiment of the present invention.

FIG. 6D presents tables depicting the format of two manifests during synchronization, where the digest of a same named content object in the local manifest is different from the digest in the remote manifest, and where the local node advertises its manifest, in accordance with an embodiment of the present invention.

FIG. 6E presents tables depicting the format of two manifests during synchronization, when the digest and modified time of a same named content object in the local manifest is different from the digest and modified time in the remote manifest, in accordance with an embodiment of the present invention.

FIG. 7 illustrates an exemplary computer and communication system that facilitates synchronization of manifests in a content centric network, in accordance with an embodiment of the present invention.

In the figures, like reference numerals refer to the same figure elements.

DETAILED DESCRIPTION

The following description is presented to enable any person skilled in the art to make and use the embodiments, and is provided in the context of a particular application and its requirements. Various modifications to the disclosed embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other embodiments and applications without departing from the spirit and scope of the present disclosure. Thus, the present invention is not limited to the embodiments shown, but is to be accorded the widest scope consistent with the principles and features disclosed herein.

Overview

Embodiments of the present invention provide a system which facilitates the synchronization of manifests between nodes on a network by using exact match names. In the following description of embodiments of the present invention, the relevant CCN entities are a local node and a remote node, although the roles can be reversed. Each of the local and remote nodes is associated with a manifest, which represents a collection of content objects at a node. A manifest is identified by a specific prefix, such that two manifests with the same prefix correspond to the same collection of content objects.

In some embodiments, the manifest is an ordered list identifying a collection of content objects. Each content object in a collection is identified by its name and corresponding digest, where the digest is the hash value of the content object. In some embodiments, each content object is also identified by a modified time which indicates the time that the content was modified. For the purposes of this description, the manifest is described as an ordered list, but other embodiments include the manifest structured as a synchronization tree, which contains content objects as well as nested collections of content objects. The system generates a root hash value for the manifest. The root hash value is an additive hash value based on the hash values of the individual content objects of the collection. The root hash value of the manifest is a unique identifier for the manifest.

The system can synchronize the collections in a local manifest with the contents in a local manifest using exact match names. A remote node advertises a hash of its manifest. A local node receives the advertisement and determines that the advertised remote manifest corresponds to a local manifest, where the remote manifest and the local manifest correspond to the same collection of content objects. The local node determines whether the contents of the local manifest are synchronized with the contents of the remote manifest by comparing the root hash value of the local manifest with the root hash value of the remote manifest. If they do not match, then the local node retrieves the remote manifest by sending a request for the remote manifest to the remote node. In some embodiments, the local node sends a set of interests based on a chunking protocol, and each interest corresponds to a numbered chunk of the manifest. In some embodiments, the remote node can advertise the number of chunks corresponding to its manifest. The local node, in possession of the remote manifest, determines which content objects indicated in the remote manifest are different from the content objects indicated in the local manifest. Subsequently, the local node transmits a set of interests for the content objects that are different, where the interest includes the name of the requested content object. In some embodiments, the interest also includes the corresponding hash value of the requested content object. In this manner, the system uses an exact name match to request and receive the set of different content objects.

In some embodiments, the manifest is transmitted using a structured technique, such as the rolling hash technique in the rsync protocol, rather than sending the complete manifest.

In some embodiments, a content object in a collection is further identified by a corresponding modified time, which indicates the time the content object was modified. For each content object that is determined to be different, the local node determines whether the modified time of the content object in the remote manifest is more or less recent than the corresponding content object in the local manifest. If the remote content object corresponds to a more recent version, then the local node updates the value of the content object in the local manifest with the value of the content object from the remote manifest. A description of how to remove, or “white-out”, a content item from a data collection is contained in U.S. patent application Ser. No. 13/681,306, previously incorporated by reference.

In some embodiments, the name of the content object is a hierarchically structured variable length identifier (HSLVI) and indicates a version number or timestamp or implicit sort order, which is used in lieu of a modified time in the manifest to determine the most recent version of a content object.

In some embodiments, if the remote content object corresponds to a version that is less recent, the system can determine whether to retain the history by inserting the value of the content object from the remote manifest in a history field of the corresponding content object in the local manifest. The system updates the values accordingly for each content object that is determined to be different. In this manner, the system synchronizes the manifest at a local node with the manifest at a remote node.

In some embodiments, the network clients, network nodes (e.g., forwarders such as routers), and publishers communicate over an information-centric network (ICN). In ICN, each piece of content is individually named, and each piece of data is bound to a unique name that distinguishes the data from any other piece of data, such as other versions of the same data or data from other sources. This unique name allows a network device to request the data by disseminating a request or an Interest that indicates the unique name, and can obtain the data independent from the data's storage location, network location, application, and means of transportation. Named-data network (NDN) or a content-centric network (CCN) are examples of ICN architecture; the following terms describe elements of an NDN or CCN architecture:

Content Object: A single piece of named data, which is bound to a unique name. Content Objects are “persistent,” which means that a Content Object can move around within a computing device, or across different computing devices, but does not change. If any component of the Content Object changes, the entity that made the change creates a new Content Object that includes the updated content, and binds the new Content Object to a new unique name.

Unique Names: A name in an ICN is typically location independent and uniquely identifies a Content Object. A data-forwarding device can use the name or name prefix to forward a packet toward a network node that generates or stores the Content Object, regardless of a network address or physical location for the Content Object. In some embodiments, the name may be a hierarchically structured variable-length identifier (HSVLI). The HSVLI can be divided into several hierarchical components, which can be structured in various ways. For example, the individual name components parc, home, ndn, and test.txt can be structured in a left-oriented prefix-major fashion to form the name “/parc/home/ndn/test.txt.” Thus, the name “/parc/home/ndn” can be a “parent” or “prefix” of “/parc/home/ndn/test.txt.” Additional components can be used to distinguish between different versions of the content item, such as a collaborative document.

In some embodiments, the name can include a non-hierarchical identifier, such as a hash value that is derived from the Content Object's data (e.g., a checksum value) and/or from elements of the Content Object's name. A description of a hash-based name is described in U.S. patent application Ser. No. 13/847,814 (entitled “ORDERED-ELEMENT NAMING FOR NAME-BASED PACKET FORWARDING,” by inventor Ignacio Solis, filed 20 Mar. 2013), which is hereby incorporated by reference. A name can also be a flat label. Hereinafter, “name” is used to refer to any name for a piece of data in a name-data network, such as a hierarchical name or name prefix, a flat name, a fixed-length name, an arbitrary-length name, or a label (e.g., a Multiprotocol Label Switching (MPLS) label).

Interest: A packet that indicates a request for a piece of data, and includes a name (or a name prefix) for the piece of data. A data consumer can disseminate a request or Interest across an information-centric network, which CCN/NDN routers can propagate toward a storage device (e.g., a cache server) or a data producer that can provide the requested data to satisfy the request or Interest.

In some embodiments, the ICN system can include a content-centric networking (CCN) architecture. However, the methods disclosed herein are also applicable to other ICN architectures as well. A description of a CCN architecture is described in U.S. patent application Ser. No. 12/338,175 (entitled “CONTROLLING THE SPREAD OF INTERESTS AND CONTENT IN A CONTENT CENTRIC NETWORK,” by inventors Van L. Jacobson and Diana K. Smetters, filed 18 Dec. 2008), which is hereby incorporated by reference.

Exemplary Network and Manifest

FIG. 1 illustrates an exemplary network 100 that facilitates the synchronization of manifests between nodes in a content centric network (CCN), in accordance with an embodiment of the present invention. Network 100 can include a client device 116, a content producing device 118, and a router or other forwarder at nodes 102, 104, 106, 108, 110, 112, and 114. Nodes 102-114 can each contain one or more manifests. For example, node 112 contains a manifest 120. Manifest 120 comprises a collection name 124 and an ordered list of content objects identified by one or more of the following: a content object name 130.1-130.n; a digest 132.1-132.n, and a modified time 134.1-134.n. The digests 132.1-132.n comprise a hash value of the content object identified respectively by names 130.1-130.n. The digest can be a SHA-256 hash of the content object, where the likelihood of a hash collision (where the one-way hash of two different content objects results in the same value) is sufficiently low such that the digest is a unique identifier for the content object. Manifest 120 also includes a root hash 122, which is an additive hash value based on the hash values 132.1-132.n of the individual content objects of the collection. Root hash 122 is a unique identifier for manifest 120 and represents the content objects in the collection.

In some embodiments, a manifest indicates a name and a corresponding digest, but does not indicate a modified time. Such a system can include, e.g., a file server where prior versions of a text file are important and thus retained by the system. In other embodiments, a manifest indicates a name, a corresponding digest, and a modified time. The system can use the modified time to determine which version of the content item should be retained. For example, if the content items indicate a link state, then the system does not need information relating to previous versions. In this case, only the content object with the most recent modified time is retained.

Any two nodes in a network can contain a manifest that represents the same collection of data, where the manifests can be synchronized using the methods described herein. The terms “local node” and “remote node” can apply to any node in a content-centric network (CCN) and are used in this disclosure to differentiate between two nodes in a CCN.

Structure of Names

The synchronization of manifests representing the same collection of data between two nodes is based on a three part name. The first part is a routable prefix that identifies the collection, such as “/a/b.” The second part contains an identification of the relevant name space, and is either “/adv” for advertisements or “/data” for data transfers. The third part is the hash value or content being advertised or transferred. Thus, a CCN name is of the form:

/collection_prefix/adv_or_data/protocol_data

An example of an interest sending a hash advertisement is:

/a/b/adv/<roothash>

A local node receiving this advertisement and containing a local manifest with the same routable prefix “/a/b” retrieves the advertised manifest in chunks 0, 1, . . . up to the ending chunk number m based on a chunking protocol. Such an interest looks like:

/a/b/data/<roothash>/<chunk number>

Based on the entries in the retrieved manifest, the system determines which content objects identified in the retrieved manifest are different from the content objects identified in the local manifest. The system retrieves the different content objects based on the name of the content object:

/a/b/data/<name of content object>

In some embodiments, the system retrieves the different content objects based on the hash value of the requested content object:

/a/b/data/<hash(content object)>

In some embodiments, the system retrieves the different content objects based on the name in the manifest. This technique allows the system to retrieve any cached copy of the object rather than using the name of the content under the collection's namespace. For example, to retrieve the first item from Manifest 140 in FIG. 6B, the system would send an Interest for the name and digest:

/chef/events/calendar.txt, digest={1}

Communication and Synchronization of Manifests Between Two Nodes

FIG. 2 illustrates an exemplary communication 200 between a node 202 (remote node) and a node 206 (local node), in accordance with an embodiment of the present invention. Node 202 and node 206 each contain a manifest with the same routing prefix, or collection name, “/a/b.” Remote node 202 transmits a send_advertisement interest 220, which is a hash advertisement containing the root hash value of its manifest identified by collection name “/a/b.” The interest takes the form: “/a/b/adv/<roothash>.” Local node 206 receives the advertised interest and performs a check_advertised_collection procedure 222 to determine if node 206 contains a manifest indicating a same collection as the advertised manifest, based on the same collection prefix (“/a/b”). Then, local node 206 determines if the root hash of its local manifest is different from the root hash of the remote manifest. Differing hash values indicate that the collections need to be synchronized with each other. Local node 206 then performs a retrieve_manifest procedure 224, by sending a set of interests for the manifest. The set of interests is divided into chunks based on a chunking protocol. The interests are sent in a request_manifest_in_chunks message 226, and are of the form: “/a/b/data/<roothash>/C0”, “/a/b/data/<roothash>/C1,” “/a/b/data/<roothash>/C2,” etc., where “C0” represents the first chunk of the manifest, and so on. In some embodiments, the advertising node can include the number of chunks required to transfer its manifest. In a send_manifest_in_chunks message 228, remote node 202 sends the requested manifest back in response to the set of interests. The requested content objects take the form: “/a/b/data/<roothash>/C0+payload” where the payload contains the requested chunk of the manifest.

Local node 206, in possession of the remote manifest, performs a determine_set_difference procedure 230. In some embodiments, the result of this procedure is a list of content objects identified by name. In other embodiments, the result is a list of content objects identified by their corresponding digest. Local node 206 then transmits a request_set_difference interest 234 for each content object determined to be different. The interest takes the form, e.g.: “/a/b/data/name 130.3”. Local node 206 receives the requested content object when remote node 202 transmits a send_set_difference content object 236, where the requested content object takes the form: “/a/b/data/name 130.3+payload.” Thus, local node 206 requests and receives all content objects determined to be different such that the contents of the local manifest are synchronized with the contents of the remote manifest. In some embodiments, local node 206 performs a sync_based_on_mod_time procedure 240, which is described below in relation to FIG. 4.

FIG. 3 presents a flow chart 300 illustrating a method for synchronizing content associated with a remote manifest and a local manifest, in accordance with an embodiment of the present invention. In the below description, the local node is depicted as node 106 in FIG. 2 and the remote node is depicted as node 102 in FIG. 2. A local node receives an advertisement corresponding to a remote manifest at a remote node (operation 302). A manifest represents a collection of content objects at a node. The local node determines that the remote manifest and the local manifest indicate the same collection of content objects (operation 304, corresponding to check_advertised_collection procedure 222 in FIG. 2). In some embodiments, the local node determines if the manifests indicate the same collection by comparing the collection name, or routing prefix, of the manifests. The local node then determines if the root hash value of its local manifest is different from the root hash value of the remote manifest (operation 306). The root hash value of a manifest is a unique identifier for the manifest, and comprises an additive hash value of the digests of the content objects represented in the manifest. If the root hash value of the local manifest is the same (decision 308), then the procedure returns.

If the root hash value of the local manifest is not the same as the root hash value of the remote manifest (decision 308), this indicates that the local and remote manifests, which represent the same collection, are not synchronized and need to be reconciled. The local node downloads or transfers the remote manifest by sending a request for, and receiving in response to the request, the remote manifest (operation 310, corresponding to retrieve_manifest procedure 224 in FIG. 2).

The local node determines which content objects identified in the remote manifest are different from the content objects identified in the local manifest (operation 312, corresponding to the determine_set_difference operation 230 in FIG. 2). In some embodiments, the local node determines the set difference by comparing the digests of the content objects identified in the local manifest with the digests of the same named content objects identified in the remote manifest. The local node transmits a set of interests corresponding to the determined different set of content objects (operation 234), and receives the requested content objects in return (operation 236). This corresponds to the resolve_set_difference operation 232 shown in FIG. 2. Thus, the contents of the local manifest are synchronized with the contents of the remote manifest.

If the local node has changes, the local node advertises the new root hash value. It can do so immediately, or schedule a next advertisement based on network or other timing considerations. For example, the local system can advertise its root hash at least once per second, but no more than four times a second. Therefore, during reconciliation, as the root hash changes due to updates, the system can advertise up to four changes per second. Otherwise, in a steady state, it can advertise once per second.

Synchronization Based on Modified Time

FIG. 4 presents a flow chart 400 illustrating a method for synchronizing content associated with a remote manifest and a local manifest based on a modified time, in accordance with an embodiment of the present invention. Note that the synchronization of content can also be based on a sequence number associated with a content object, where a greater sequence number indicates a more recent version of the content object. Synchronization of content can also be based on an ordering of the names of the content objects, where an implicit sort order indicates a more recent version of the content object. Flowchart 400 depicts an exemplary method based on the modified time of a content object, which is depicted as sync_based_on_mod_time operation 240 in FIG. 2. Based on the previously determined set difference, a local node receives a requested set of content objects that include a modified time indicating a time that a corresponding content object was modified (operation 402). For each content object, the local node determines if the modified time of the content object in the remote manifest is more recent or less recent than the corresponding content object in the local manifest (operation 404). If the modified time of the content object from the remote manifest is more recent (decision 406), then the system updates the value of the content object in the local manifest with the value of the content object from the remote manifest (operation 408). In some embodiments, the local node can determine whether to retain the value of its (less recent) content object in the local manifest, by inserting a corresponding value and modified time of the (less recent) content object into a history field in the local manifest before updating the value of the content object in the local manifest. If there are more content objects in the set that need to be retrieved (decision 410), then the system returns to operation 404. If not, then the system has finished retrieving the necessary content objects.

If the modified time of the content object from the remote manifest is less recent than the corresponding content object in the local manifest (operation 406), then the system determines whether to save the value of the (less recent) content object from the remote manifest (decision 412), by inserting a corresponding value and modified time of the (less recent) content object into a history field in the local manifest (operation 414). If there are more content objects in the set that need to be retrieved (decision 410), then the system returns to operation 404. If not, then the system has finished retrieving the necessary content objects. Thus, all content objects determined to be different have been updated, and possibly retained or saved in a history field of the local manifest, such that the contents of the local manifest are synchronized with the contents of the remote manifest.

Transmitting Advertisement, Manifest, and Contents for Synchronization

FIG. 5 presents a flow chart 500 illustrating a method for transmitting an advertisement corresponding to a manifest, in accordance with an embodiment of the present invention. The node in FIG. 5 is described as a local node because it transmits packets to a remote node. Note that the local node in FIG. 5 corresponds to node 202 in FIG. 2, which has been previously referred to as remote node 202. Recall that any node in a network such as a content-centric network (CCN) can be referred to as a remote node or a local node.

A local node transmits an advertisement corresponding to a manifest, where the manifest represents a collection of content objects at a node (operation 502, corresponding to send_advertisement message 220 in FIG. 2). This advertisement is an interest that is akin to a beacon, and, based on the “/adv” name space used, does not request any content in return. Upon receiving a request from a remote node for the manifest, the local node transmits the manifest to the remote node (operation 504, corresponding to receiving request_manifest_in_chunks interest 226 and send_manifest_in_chunks message 228 in FIG. 2). Upon receiving a request from a remote node for a content object identified in the local manifest, the local node transmits the requested content object to the requesting remote node (operation 506, corresponding to receiving request_set_difference interest 234 and send_set_different message 236 in FIG. 2).

Manifest Contents During Synchronization

FIG. 6A presents a table depicting the format of a manifest 120 and the content objects represented in the collection, in accordance with an embodiment of the present invention. Manifest 120 comprises an ordered list of content objects identified by a collection name 124 and one or more of the following: a content object name 130.1-130.n; a digest 132.1-132.n; and a modified time 134.1-134.n. The digests 132.1-132.n comprise a hash value of the content object identified respectively by names 130.1-130.n. Manifest 120 also includes a root hash 122, which is an additive hash value based on the hash values 132.1-132.n of the individual content objects of the collection. Root hash 122 of manifest 120 is a unique identifier for manifest 120.

As described in relation to FIG. 1, manifest 120 can indicate a name and corresponding digest for each content object represented in the collection. In some embodiments, manifest 120 can also include a modified time for each content object represented in the collection. The use of the modified time field depends on the underlying application or service being performed. Note that manifest 120 indicates collection name 124. The manifests depicted in FIGS. 6B-E also include a collection name, but because the exemplary manifests comprise the same collections of data, the collection name is not included in FIGS. 6B-6E.

FIGS. 6B-6E depict two nodes, node 102 and node 106, which each contain a manifest. In this example, node 102 is the remote node and node 106 is the local node. Local node 106 contains a manifest 160, and remote node 102 contains a manifest 140. Manifests 140 and 160 contain the same collection name, or routing prefix, and thus represent the same collection of content objects or data. Time is indicated by the labels T1, T2, etc., and the contents of manifests 140 and 160 are depicted in relation to these time labels.

Recall that a manifest is further identified by a root hash value, illustrated as root hash 122 in FIG. 6A, which is an additive hash value based on the digests of the individual content objects of the collection. In the below examples, the root hash value and the digests are indicated as a number in brackets, e.g., “{999}”, though the number can be much larger than this. In addition, both the digests of the content objects and the exemplar root hash values of manifest 140 and manifest 160 that change over time are depicted only as sample representations of additive hash values.

Local Manifest Missing a Content Object from Remote Manifest

FIG. 6B presents tables depicting the format of two manifests during synchronization, where the local manifest is missing a content object from the remote manifest, in accordance with an embodiment of the present invention. At time T1, local node 106 receives a hash advertisement from remote node 102 of manifest 140, with a root hash value of {999}. Local node 106 determines that its manifest 160 represents the same collection of data as remote manifest 140 and retrieves manifest 140. Local node 106 determines that local manifest 160, with a root hash value of {60}, is not synchronized with remote manifest 140, which has a root hash value of {999}. Local node 106 then determines the set difference between its local manifest 160 and remote manifest 140. In this example, manifest 160 is missing the content object identified by the name of “/fruit/lychee/peel,” so local node 106 sends an interest to remote node 102 for the content object by that name. Remote node 102 returns the requested content object. At time T2, local node 106 updates it manifest 160 with the missing content object. Based on the contents of manifest 160 at time T2, the system generates a new root hash value for manifest 160, which now equals the root hash value of the remote manifest. This is depicted by the root hash value of manifest 160 at time T2: {60}→{999}. Thus, the local manifest and the remote manifest have synchronized their collections and both contain the same root hash value of {999}.

Local and Remote Manifests Contain Content Object with Same Name, but Different Digest: Local Node Retrieves Manifest First

FIG. 6C presents tables depicting the format of two manifests during synchronization, where the digest of a same named content object in the local manifest is different from the digest in the remote manifest, and where the remote node sends the advertisement and the local node retrieves the remote manifest, in accordance with an embodiment of the present invention. At time T3, local node 106 receives a hash advertisement from remote node 102 of manifest 140, with a root hash value of {999}. Local node 106 determines that its manifest 160 represents the same collection of data as remote manifest 140 and retrieves manifest 140. Local node 106 determines that local manifest 160, with a root hash value of {53}, is not synchronized with remote manifest 140, which has a root hash value of {999}. Local node 106 then determines the set difference between its local manifest 160 and remote manifest 140. In this example, manifest 160 is missing the content object identified by the name of “/fruit/lychee/peel” with a digest of {279}, so local node 106 sends an interest to remote node 102 for the content object based on that name and digest. Remote node 102 returns the requested content object. At time T4.a, local node 106 updates it manifest 160 with the missing content object. Based on the contents of manifest 160 at time T4.a, the system generates a new root hash value for manifest 160. This is depicted by the root hash value of manifest 160 at time T4.a: {53}→{772}. However, manifest 140, with its original root hash value of {999}, is now out of sync with manifest 160, which has the new root hash value of {772}.

Subsequently, remote node 102 receives a hash advertisement from local node 106 of manifest 160, with the new root hash value of {772}. Remote node 102 determines that its manifest 140 represents the same collection of data as manifest 160 and retrieves manifest 160. Remote node 102 determines that manifest 140, with a root hash value of {999}, is not synchronized with manifest 160, which has a root hash value of {772}. Remote node 102 then determines the set difference between its manifest 140 and manifest 160. In this example, manifest 140 is missing the content object identified by the name of “/fruit/lychee/peel” with a digest of {41}, so remote node 102 sends an interest to local node 106 for the content object based on that name and digest. Local node 106 returns the requested content object. At time T5.a, remote node 102 updates it manifest 140 with the missing content object. Based on the contents of manifest 140 at time T5.a, the system generates a new root hash value for manifest 140. This is depicted by the root hash value of manifest 140 at time T5.a: {999}→{772}. Thus, at time T5.a, manifest 140 at node 102 is in sync with manifest 160 at node 106. Nodes 102 and 106 have synchronized their collections and both contain the same root hash value of {772}.

Local and Remote Manifests Contain Content Object with Same Name, but Different Digest: Remote Node Retrieves Manifest First

FIG. 6D presents tables depicting the format of two manifests during synchronization, where the digest of a same named content object in the local manifest is different from the digest in the remote manifest, and where the local node sends the advertisement and the remote node retrieves the local manifest, in accordance with an embodiment of the present invention. At time T3, remote node 102 receives a hash advertisement from local node 106 of manifest 160, with a root hash value of {53}. Remote node 102 determines that its manifest 140 represents the same collection of data as manifest 160 and retrieves manifest 160. Remote node 102 determines that its manifest 140, with a root hash value of {999}, is not synchronized with manifest 160, which has a root hash value of {53}. Remote node 102 then determines the set difference between its manifest 140 and manifest 160. In this example, manifest 140 is missing the content object identified by the name of “/fruit/lychee/peel” with a digest of {41}, so remote node 102 sends an interest to local node 106 for the content object based on that name and digest. Local node 106 returns the requested content object. At time T4.b, remote node 102 updates it manifest 140 with the missing content object. Based on the contents of manifest 140 at time T4.b, the system generates a new root hash value for manifest 140. This is depicted by the root hash value of manifest 140 at time T4.b: {999}→{772}. However, manifest 160, with its original root hash value of {53}, is now out of sync with manifest 140, which has a new root hash value of {772}.

Subsequently, local node 106 receives a hash advertisement from remote node 102 of manifest 140, with the new root hash value of {772}. Local node 106 determines that its manifest 160 represents the same collection of data as manifest 140 and retrieves manifest 140. Local node 106 determines that its manifest 160, with a root hash value of {53}, is not synchronized with manifest 140, which has a root hash value of {772}. Local node 106 then determines the set difference between its local manifest 160 and remote manifest 140. In this example, manifest 160 is missing the content object identified by the name of “/fruit/lychee/peel” with a digest of {41}, so local node 106 sends an interest to remote node 102 for the content object based on that name and digest. Remote node 102 returns the requested content object. At time T5.b, local node 106 updates it manifest 160 with the missing content object. Based on the contents of manifest 160 at time T5.b, the system generates a new root hash value for manifest 160. This is depicted by the root hash value of manifest 160 at time T5.b: {53}→{772}. Thus, at time T5.b, manifest 140 at node 102 is in synchronization with manifest 160 at node 106. Nodes 102 and 106 have synchronized their collections and both contain the same root hash value of {772}.

FIGS. 6C and 6D illustrate that any node can be a remote or a local node, and that the order of sending or receiving hash advertisements, manifests, and content objects determined to be different associated with the manifest may differ depending on the contents in a collection at a given time, e.g., the contents of manifests 140 and 160 at times [T3, T4.a, T5.a] and at times [T3, T4.b, T5.b]. That is, any node can send or receive a hash advertisement, transfer a manifest, and synchronize the contents of a manifest at the node using the methods described in this disclosure, thereby resulting in the synchronization of data collections at two nodes.

Synchronization Using Modified Time

FIG. 6E presents tables depicting the format of two manifests during synchronization, where the digest and modified time of a same named content object in the local manifest is different from the digest and modified time in the remote manifest, in accordance with an embodiment of the present invention.

At time T6, local node 106 receives a hash advertisement from remote node 102 of manifest 140, with a root hash value of {999}. Local node 106 determines that its manifest 160 represents the same collection of data as remote manifest 140 and retrieves manifest 140. Local node 106 determines that local manifest 160, with a root hash value of {80}, is not synchronized with remote manifest 140, which has a root hash value of {999}. Local node 106 then determines the set difference between its local manifest 160 and remote manifest 140. In this example, both manifest 140 and manifest 160 indicate a modified time 134 corresponding to each content object represented in its collection. The system determines that a content object with the same name in manifest 140 and manifest 160 has a different digest and a different modified time. Note that a modified time can include information relating to the second, minute, hour, day, month, and year that a corresponding content object was modified. For simplicity, the exemplary manifests in FIG. 6E contain only a time of the day. Manifest 140 contains a content object identified by the name of “/chef/events/calendar.txt” with a digest of {1} and a modified time of 8:05 am. Manifest 160 contains a content object identified by the same name with a different digest of {320} and a different modified time of 7:30 am. Local node 106 then sends an interest to remote node 102 for the content object based on the name and digest of the different content object. Remote node 102 returns the requested content object.

Local node determines that the content object from remote manifest 140 with a modified time of 8:05 am is more recent than the content object from its local manifest 160 with a modified time of 7:30 am. So, at time T7, local node 106 updates it manifest 160 with the different and more recent content object. Based on the contents of manifest 160 at time T7, the system generates a new root hash value for manifest 160. This is depicted by the root hash value of manifest 160 at time T7: {80}→{999}. Thus, at time T7, manifest 160 at local node 106 is in sync with manifest 140 at remote node 106. Nodes 102 and 106 have synchronized their collections and both contain the same root hash value of {999}.

In some embodiments, the system will retain the previous version of the changed content object (e.g., the content object identified by name “/chef/events/calendar.txt” with a digest of {320} and a modified time of 7:30 am) in a history field of manifest 160. In other embodiments, when remote node 102 receives a hash advertisement from local node 106 of manifest 160 with a root hash of {80} and downloads the local manifest 160, remote node 102 determines that the version of the received content object identified by name “/chef/events/calendar.txt” with a digest of {320} and a modified time of 7:30 am is less recent than the version in its own manifest. In this case, manifest 140 at remote node 102 remains out of synchronization with manifest 160 at local node 106. The manifests will undergo synchronization at a later time when local node 106 receives a hash advertisement from remote node 102 of manifest 140, which contains the more recently updated content object, as described above.

Apparatus and Computer System

FIG. 7 illustrates an exemplary computer and communication system that facilitates synchronization of manifests in a content centric network, in accordance with an embodiment of the present invention. Computer and communication system 702 includes a processor 704, a memory 706, and a storage device 708. Memory 706 can include a volatile memory (e.g., RAM) that serves as a managed memory, and can be used to store one or more memory pools. Furthermore, computer and communication system 702 can be coupled to a display device 710, a keyboard 712, and a pointing device 714. Storage device 708 can store an operating system 716, a content-processing system 718, and data 732.

Content-processing system 718 can include instructions, which when executed by computer and communication system 702, can cause computer and communication system 702 to perform methods and/or processes described in this disclosure. Specifically, content-processing system 718 may include instructions for sending an advertisement corresponding to a remote manifest of a remote node (advertisement mechanism 722). Content-processing system 718 can also include instructions for determining that a local manifest corresponds to the same collection of content objects as a remote manifest (check collection mechanism 724). Content-processing system 718 can also contain instructions for determining that the contents of the collections at the local manifest and the remote manifest are different, by comparing the root hash value of the local manifest with the root hash value of the remote manifest (check collection mechanism 724).

Content-processing system 718 can include instructions for sending a request for a remote manifest, receiving a remote manifest, sending a request for a content object associated with the remote manifest, and receiving a requested content object associated with the remote manifest (communication mechanism 720). Content-processing system 718 can also include instructions for sending a set of interests to retrieve a remote manifest, based on a chunking protocol, such that each interest corresponds to a numbered chunk of the manifest (communication mechanism 720). Content-processing system 718 can include instructions for transmitting an advertisement corresponding to a manifest, transmitting the manifest to a remote node in response to receiving a request for the manifest, transmitting a requested content object associated with the manifest to a remote node, and receiving a set of interests based on a chunking protocol, such that each interest corresponds to a numbered chunk of the manifest (communication mechanism 720).

Content-processing system 718 can further include instructions for determining a set difference between the content objects identified in a local manifest and the content objects identified in a remote manifest, where the manifests comprise the same collection of data (determine difference mechanism 726). Content-processing system 718 can also include instructions for updating, responsive to determining that the modified time of the content object in the remote manifest is more recent than the modified time of the corresponding content object in the local manifest, the value of a content object in the local manifest with the value of the content object from the remote manifest (synchronization mechanism 730). Content-processing system 718 can include instructions for inserting, responsive to determining that the modified time of the content object in the remote manifest is less recent than the modified time of the corresponding content object in the local manifest, a corresponding value and modified time of a content object from the remote manifest into a history field of the content object in the local manifest (history mechanism 728).

Data 732 can include any data that is required as input or that is generated as output by the methods and/or processes described in this disclosure. Specifically, data 732 can store at least: a manifest that represents a collection of content objects; a name of a content object; a corresponding digest of a content object; a modified time indicating the time that the content object was modified; a root hash value of the manifest, which is an additive hash value based on the digests of the content objects represented by the manifest; a collection name, or routing prefix, of a manifest, which identifies the manifest; an identifier to determine that a packet corresponds to an advertisement of the manifest or a transfer of data; and a number corresponding to a numbered chunk of the manifest based on a chunking protocol.

The data structures and code described in this detailed description are typically stored on a computer-readable storage medium, which may be any device or medium that can store code and/or data for use by a computer system. The computer-readable storage medium includes, but is not limited to, volatile memory, non-volatile memory, magnetic and optical storage devices such as disk drives, magnetic tape, CDs (compact discs), DVDs (digital versatile discs or digital video discs), or other media capable of storing computer-readable media now known or later developed.

The methods and processes described in the detailed description section can be embodied as code and/or data, which can be stored in a computer-readable storage medium as described above. When a computer system reads and executes the code and/or data stored on the computer-readable storage medium, the computer system performs the methods and processes embodied as data structures and code and stored within the computer-readable storage medium.

Furthermore, the methods and processes described above can be included in hardware modules or apparatus. The hardware modules or apparatus can include, but are not limited to, application-specific integrated circuit (ASIC) chips, field-programmable gate arrays (FPGAs), dedicated or shared processors that execute a particular software module or a piece of code at a particular time, and other programmable-logic devices now known or later developed. When the hardware modules or apparatus are activated, they perform the methods and processes included within them.

The foregoing descriptions of embodiments of the present invention have been presented for purposes of illustration and description only. They are not intended to be exhaustive or to limit the present invention to the forms disclosed. Accordingly, many modifications and variations will be apparent to practitioners skilled in the art. Additionally, the above disclosure is not intended to limit the present invention. The scope of the present invention is defined by the appended claims. 

What is claimed is:
 1. A computer-implemented method, comprising: receiving, by a local node, an advertisement corresponding to a remote manifest of a remote node, wherein a manifest represents a collection of content objects at a node; sending a request for the remote manifest in response to determining that a local manifest is different from the remote manifest, wherein the remote manifest and the local manifest correspond to a same collection of content objects; determining, based on the received remote manifest, which content objects indicated in the remote manifest are different from the content objects indicated in the local manifest; and transmitting a set of interests for the content objects that are different.
 2. The method of claim 2, wherein determining that the local manifest is different from the remote manifest further comprises determining that a root hash value of the local manifest is different from a root hash value of the remote manifest, wherein the root hash value of a manifest identifies the content objects of the manifest.
 3. The method of claim 1, wherein sending a request for a remote manifest further comprises: sending a set of interests based on a chunking protocol, wherein each interest corresponds to a numbered chunk of the manifest.
 4. The method of claim 1, wherein transmitting a set of interests for the content objects that are different is based on one or more of: a hash value of the content object; and a name of the content object as indicated in the manifest.
 5. The method of claim 1, wherein the name for the content object is a hierarchically structured variable length identifier (HSVLI) which comprises contiguous name components ordered from a most general level to a most specific level, and wherein the name further indicates one or more of: a time that the content object was modified; and a sequence number based on a time that the content object was modified.
 6. The method of claim 1, further comprising: determining whether the content object in the remote manifest is more recent than the content object in the local manifest, based on one or more of: a time that the content object was modified, wherein a later time indicates a more recent version of the content object; a sequence number based on a time that the content object was modified, wherein a greater sequence number indicates a more recent version of the content object; and an ordering of the names of the content objects, wherein an implicit sort order indicates a more recent version of the content object.
 7. The method of claim 6, further comprising: responsive to determining that the content object in the remote manifest is more recent than the content object in the local manifest, updating the value of the content object in the local manifest with the value of the content object in the remote manifest, thereby facilitating synchronization of the content objects associated with the manifests of both the local and remote nodes.
 8. The method of claim 6, further comprising: responsive to determining that the content object in the remote manifest is less recent than the modified of the corresponding content object in the local manifest, inserting the corresponding value and modified time of the content object in the remote manifest into a history field of the content object in the local manifest.
 9. The method of claim 1, wherein a packet sent or received by the local node indicates one or more of: a routable prefix that identifies the manifest; an identifier to determine that the packet corresponds to a transfer of data; a root hash value of the manifest; a number corresponding to a numbered chunk based on a chunking protocol; a hash of the content object; and a name of the content object in the manifest.
 10. A computer-implemented method comprising: transmitting, by a local node, an advertisement corresponding to a manifest, wherein a manifest represents a collection of content objects at a node; transmitting the manifest to a remote node in response to receiving a request for the manifest; and transmitting a requested content object associated with the manifest to a remote node.
 11. The method of claim 10, further comprising: receiving a set of interests based on a chunking protocol, wherein each interest corresponds to a numbered chunk of the manifest.
 12. The method of claim 10, wherein an interest corresponding to the transmitted advertisement indicates one or more of: a routable prefix that identifies the manifest; an identifier to determine that the interest corresponds to an advertisement of the manifest; and a root hash value of the manifest.
 13. A non-transitory computer-readable storage medium storing instructions that when executed by a computer cause the computer to perform a method, the method comprising: receiving, by a local node, an advertisement corresponding to a remote manifest of a remote node, wherein a manifest represents a collection of content objects at a node; sending a request for the remote manifest in response to determining that a local manifest is different from the remote manifest, wherein the remote manifest and the local manifest correspond to a same collection of content objects; determining, based on the received remote manifest, which content objects indicated in the remote manifest are different from the content objects indicated in the local manifest; and transmitting a set of interests for the content objects that are different.
 14. The storage medium of claim 14, wherein determining that the local manifest is different from the remote manifest further comprises determining that a root hash value of the local manifest is different from a root hash value of the remote manifest, wherein the root hash value of a manifest identifies the content objects of the manifest.
 15. The storage medium of claim 13, wherein sending a request for a remote manifest further comprises: sending a set of interests based on a chunking protocol, wherein each interest corresponds to a numbered chunk of the manifest.
 16. The storage medium of claim 13, wherein transmitting a set of interests for the content objects that are different is based on one or more of: a hash value of the content object; and a name of the content object as indicated in the manifest.
 17. The storage medium of claim 13, wherein the name for the content object is a hierarchically structured variable length identifier (HSVLI) which comprises contiguous name components ordered from a most general level to a most specific level, and wherein the name further indicates one or more of: a time that the content object was modified; and a sequence number based on a time that the content object was modified.
 18. The method of claim 13, wherein the method further comprises: determining whether the content object in the remote manifest is more recent than the content object in the local manifest, based on one or more of: a time that the content object was modified, wherein a later time indicates a more recent version of the content object; a sequence number based on a time that the content object was modified, wherein a greater sequence number indicates a more recent version of the content object; and an ordering of the names of the content objects, wherein an implicit sort order indicates a more recent version of the content object.
 19. The storage medium of claim 18, further comprising: responsive to determining that the content object in the remote manifest is more recent than the content object in the local manifest, updating the value of the content object in the local manifest with the value of the content object in the remote manifest, thereby facilitating synchronization of the content objects associated with the manifests of both the local and remote nodes.
 20. The storage medium of claim 18, further comprising: responsive to determining that the modified time of the content object in the remote manifest is less recent than the modified of the corresponding content object in the local manifest, inserting the corresponding value and modified time of the content object in the remote manifest into a history field of the content object in the local manifest.
 21. The storage medium of claim 13, wherein a packet sent or received by the local node indicates one or more of: a routable prefix that identifies the manifest; an identifier to determine that the packet corresponds to a transfer of data; a root hash value of the manifest; a number corresponding to a numbered chunk based on a chunking protocol; a hash of the content object; and a name of the content object in the manifest.
 22. A non-transitory computer-readable storage medium storing instructions that when executed by a computer cause the computer to perform a method, the method comprising: transmitting, by a local node, an advertisement corresponding to a manifest, wherein a manifest represents a collection of content objects at a node; transmitting the manifest to a remote node in response to receiving a request for the manifest; and transmitting a requested content object associated with the manifest to a remote node.
 23. The storage medium of claim 22, further comprising: receiving a set of interests based on a chunking protocol, wherein each interest corresponds to a numbered chunk of the manifest.
 24. The storage medium of claim 22, wherein an interest corresponding to the transmitted advertisement indicates one or more of: a routable prefix that identifies the manifest; an identifier to determine that the interest corresponds to an advertisement of the manifest; and a root hash value of the manifest. 